package com.hunttown.mes.rpc.api;

import com.hunttown.mes.rpc.domain.AnalysisManageDTO;
import com.hunttown.mes.rpc.domain.query.AnalysisManageDTOQuery;
import com.hunttown.common.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2018-11-26 14:25:42
 */
public interface AnalysisManageRpcService {

    AnalysisManageDTO insert(AnalysisManageDTO analysisManageDTO);

    Boolean updateInfoById(AnalysisManageDTO analysisManageDTO);

    Boolean updateInfoByQuery(AnalysisManageDTOQuery analysisManageDTOQuery);

    AnalysisManageDTO selectById(Integer id);

    AnalysisManageDTO selectByMobileForLogin(String mobile);

    AnalysisManageDTO selectObjByQuery(AnalysisManageDTOQuery analysisManageDTOQuery);

    Page<AnalysisManageDTO> getListForPage(AnalysisManageDTOQuery analysisManageDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> selectSimilarManage(String similar);

    Map<String, String> selectManagerRoleMenu(Integer adminId);

    //单纯的获取数量
    Long countByQuery(AnalysisManageDTOQuery analysisManageDTOQuery);
}